package com.ruoyi.system.domain;

import java.math.BigDecimal;
import javax.validation.constraints.*;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 提升任务对象 credit_task
 * 
 * @author ruoyi
 * @date 2025-01-28
 */
public class CreditTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 任务ID */
    private Long taskId;

    /** 任务名称 */
    @Excel(name = "任务名称")
    private String taskName;

    /** 任务描述 */
    @Excel(name = "任务描述")
    private String taskDesc;

    /** 任务类型（1生活服务 2商业服务 3亲社会行为） */
    @Excel(name = "任务类型", readConverterExp = "1=生活服务,2=商业服务,3=亲社会行为")
    private String taskType;

    /** 完成奖励分数 */
    @Excel(name = "奖励分数")
    private Integer scoreReward;

    /** 需要金额 */
    @Excel(name = "需要金额")
    private BigDecimal requiredAmount;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sortOrder;

    public void setTaskId(Long taskId) 
    {
        this.taskId = taskId;
    }

    public Long getTaskId() 
    {
        return taskId;
    }

    public void setTaskName(String taskName) 
    {
        this.taskName = taskName;
    }

    @NotBlank(message = "任务名称不能为空")
    @Size(max = 100, message = "任务名称长度不能超过100个字符")
    public String getTaskName() 
    {
        return taskName;
    }

    public void setTaskDesc(String taskDesc) 
    {
        this.taskDesc = taskDesc;
    }

    @Size(max = 500, message = "任务描述长度不能超过500个字符")
    public String getTaskDesc() 
    {
        return taskDesc;
    }

    public void setTaskType(String taskType) 
    {
        this.taskType = taskType;
    }

    @NotBlank(message = "任务类型不能为空")
    public String getTaskType() 
    {
        return taskType;
    }

    public void setScoreReward(Integer scoreReward) 
    {
        this.scoreReward = scoreReward;
    }

    @NotNull(message = "奖励分数不能为空")
    public Integer getScoreReward() 
    {
        return scoreReward;
    }

    public void setRequiredAmount(BigDecimal requiredAmount) 
    {
        this.requiredAmount = requiredAmount;
    }

    public BigDecimal getRequiredAmount() 
    {
        return requiredAmount;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setSortOrder(Integer sortOrder) 
    {
        this.sortOrder = sortOrder;
    }

    public Integer getSortOrder() 
    {
        return sortOrder;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("taskId", getTaskId())
            .append("taskName", getTaskName())
            .append("taskDesc", getTaskDesc())
            .append("taskType", getTaskType())
            .append("scoreReward", getScoreReward())
            .append("requiredAmount", getRequiredAmount())
            .append("status", getStatus())
            .append("sortOrder", getSortOrder())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
} 